package com.xingzuo.library_user.ui;

import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.xingzuo.base.app.AppActivityKey;
import com.xingzuo.base.ui.mvp.base.ui.BaseActivity;
import com.xingzuo.library_user.R;
import com.xingzuo.library_user.R2;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

@Route(path = AppActivityKey.MOREACTIVITY)
public class MoreActivity extends BaseActivity {
    @BindView(R2.id.ll_phone)
    LinearLayout llPhone;
    @BindView(R2.id.ll_fankui)
    LinearLayout llFankui;
    @BindView(R2.id.ll_out)
    TextView llOut;

    @Override
    public int getView() {
        return R.layout.activity_more;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initLinsenterner() {

    }

    @Override
    public void getData() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }

    @OnClick({R2.id.ll_phone, R2.id.ll_fankui, R2.id.ll_out})
    public void onViewClicked(View view) {
        int id = view.getId();
        if (id == R.id.ll_phone) {
            startIntent(AppActivityKey.BINDINGPHONEACTIVITY);
        } else if (id == R.id.ll_fankui) {
            startIntent(AppActivityKey.FEEDBACKACTIVITY);
        } else if (id == R.id.ll_out) {
            startIntent(AppActivityKey.LOGIN);
        }
    }
}